home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 October / EnigmA AMIGA RUN 31 (1998)(G.R. Edizioni)(IT)[!][issue 1998-10].iso / earkit / browser / voyager-295 / install_voyager < prev    next >
Text File  |  1998-09-22  |  25KB  |  608 lines

  1. ;******************************************************************************
  2. ;         __  __                                     
  3. ;        / / / /                                    
  4. ;       / / / /______ __  __ ______  ______ ______ _____
  5. ;      / / / // __  / \ \/ // __  / / __  // ____// .__/
  6. ;     /  \/ // /_/ /   \  // __  / / /_/ // __/_ / /
  7. ;     \____//_____/    / //_/ /_/ _\__  //_____//_/
  8. ;                     /_/        /_____/   
  9. ;
  10. ; $VER: Voyager_Installer 2.0pizzaY (March-18-1998) 
  11. ; Installer by Robert C. Reiswig ©1995,1996,1997,1998
  12. ; Voyager by Oliver Wagner ©1995,1996,1997,1998
  13. ;
  14. ; If you wish to use any part of this installer you must ask. May not be 
  15. ; integrated/placed into any other package. Changes, suggestions or problems:
  16. ; voyager@vgr.com or vgr@best.com
  17. ;******************************************************************************
  18. (set Vkey 1) ; 0=NoKey, 1=LookForKey
  19. (set #Voyager_Archive "v_ng.lha")
  20. (set #Compress "lhex")
  21.  
  22. ;*** System Stuff ***
  23. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  24. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  25. (set osver (/ (getversion "LIBS:version.library") 65536))
  26. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  27. (set fastmem (- totmem graphmem))
  28.  
  29. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  30. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  31. (if (= osver 41) (set workbench "3.2"))
  32.  
  33. (set cpu (database "cpu"))
  34. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  35. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  36. (if (= cpu 68040) (set #cpu 4)) 
  37. (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 5) )
  38.  
  39. (set vernum1 (getversion "V")) (set ver1 (/ vernum1 65536))
  40. ;(set vernum1 (getversion "mui/StringNumeric.mcc")) (set ver1 (/ vernum1 65536)) 
  41.  
  42. (set rev1 (- vernum1 (* ver1 65536) ) ) (set Voyagerver (cat ver1 "." rev1))
  43.  
  44. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  45. (set lan 0)
  46.  
  47. (if (= "english"    lanfound) (set lan 0))  (if (= "deutsch"    lanfound) (set lan 1))
  48. (set #English    "English")  (set #Deutsch    "Deutsch")
  49.  
  50. (set mfound 0) (set newicon1 1) 
  51. (set keeper 1) (set firsttime 0)
  52.  
  53. ;********************************************************************
  54. ; English Strings
  55. ;********************************************************************
  56. (set #about (cat "\n\n\n\nWelcome to Voyager-NG " Voyagerver "\n\n\nCopyright © 1995-1998 by\n\nOliver Wagner\n") )
  57. (set #installup " Install or Update Voyager-NG")
  58. (set #clearcache " Clear Cache Directory")
  59. (set #task "\nWhat would you like to do?\n")
  60. (set #whereVoyager "Where do you wish to install Voyager-NG. The directory 'Voyager' will be created if it is not there. If a copy of Voyager-NG is found it will be backed up.")
  61. (set muiver "No Version Installed")
  62. (set #newermui "\nVoyager-NG needs version 3.6 or higher of MUI installed to work correctly.\n\nNow would be a good time to Upgrade!\n\nYou can find mui36usr.lha on Aminet in util/libs\n\nIt looks like you have: \n\n")
  63. (set #nomuiarc "\nThe installer could not find the MUI dir in the archive. Because of this the MUI Classes used by VoyagerNG were not installed.\n\n If you are Updating VoyagerNG then this is not a problem. If it is your first time installing VoyagerNG you will need to get an archive with these files.")
  64. (set #nompc "\nThe .MCC files for VoyagerNG can not be installed to 'mui:libs/mui'")
  65. (set #need-os "\n\nVoyager-NG needs version 3.0 or higher of the Amiga OS installed to work correctly.\n\n It looks like you have: \n\n")
  66. (set #000used "\n\nThe 68000 version will be installed.") 
  67. (set #nompc "\nThe .MPC files for Voyager-NG can not be installed to 'mui:libs/mui'")
  68. (set #noreg1 "\nThe installer could not find 'S:Voyager.Key' or '")
  69. (set #noreg2 "' on your system. It also does not seem to be in the archive you are installing Voyager-NG from. You may need to get the archive again.\n\nThe installer will now run the Registration Utility, 'Register-Voyager'.")   
  70. (set #filethere1 "\n\nThe installer has found Voyager-NG version ")
  71. (set #filethere2 " at ")
  72. (set #filethere3 "\n\nThe file will be renamed to ")
  73. (set #filethere4 " and it will then be moved to ")
  74. (set #backuptoXXX "Back-UP to file named 'Voyager-NG.")
  75. (set #copyover "Copy Over Old Version")
  76. (set #oktodelete1 "\nIs it ok to delete the older Voyager-NG binary so that the Voyager-NG Directory can be made?\n")
  77. (set #oktodelete2 "\nIs it ok to delete the older _renamed_ Voyager-NG binary so that the Voyager-NG Directory can be made?\n")
  78. (set #Voyagerfound "\nThe Installer has found a copy of Voyager-NG already installed. What do you want to do?\n")
  79. (set #no030found "\n\nThe 68030+FPU Version of Voyager-NG, V030, was not found in this archive this is why the 68000 version was installed.")
  80. (set #newicon "\nDo you wish to copy over The Voyager-NG Icon from the archive? If you have any ToolTypes already set you should select no.\n")
  81. (set #nonewicon  "No  - ToolTypes already set.")
  82. (set #yesnewicon "Yes - Copy over Icon.")
  83. (set #yesnewicon "Yes - Copy over Icon.")
  84. (set #whatcat "\nSelect the Voyager-NG Language catalog you wish to install.\n")
  85. (set #wherecat "\nWhere do you wish to install the Voyager-NG Language Catalog? Default is ")
  86. (set #catnofind "Can not find this catalog in this Voyager-NG archive. You may need to get a newer archive.")
  87. (set #whattools "\nWhat Tools would you like to install? They will be placed in: ")
  88. (set #updatingmuic "\nUpdating the MUI Classes if needed.\n\n(#?.mcc & #?.mcp)")
  89. (set #nomuiarc "\nThe installer could not find the MUI dir in the archive. Because of this the MUI Classes used by Voyager-NG were not installed.\n\n If you are Updating Voyager-NG then this is not a problem. If it is your first time installing Voyager-NG you will need to get an archive with these files.")
  90. (set #whatdocs "\nWhat Voyager-NG documentation would you like to install?\n")
  91. (set #wheredocs "Where would you like the Voyager-NG documentation you selected to be installed?")
  92. (set #byebye (cat "\nVoyager-NG Install Complete!\n\n" ))
  93.  
  94. (set #whereUnpack "Where would you like to Uncompress the VoyagerNG Archive to, so that you may install it from there?")
  95. (set #uncompressingbin (cat "\n\nUncompressing the " #Voyager_Archive " archive.\n\nPlease wait."))
  96. (set #errorbin (cat "\n\nThe " #Voyager_Archive " is missing or has an error in it. You might try to reinstall.  If that does not work you will need to get a new VoyagerNG disk/archive."))
  97. (set #oktoinstall "\nThe VoyagerNG archive has been un-packed. You can now run the installer to complete the install in:\n\n")
  98.  
  99. (set #askcpu "\nWhat version of Voyager-NG would you like to install?\n")
  100. (set #noregdir "\nThe Register-Voyager directory was not found. This means that the archive has been altered or is bad. Please get another copy of the Voyager-NG Archive.\n\nOR\n\nThe Keyfile is missing. Please contact your REG site.")
  101. (set #updatesetpatch "\nThe installer looked for 'c:setpatch' and did not find it or you have a version lower then 40.16. Voyager-NG needs version 40.16 to work correctly. You wany want to upgrade soon. (NOTE: if you keep 'setpatch' in a different place than 'c:' and its 40.16 or higher then this message is void.)")
  102. (set #updateinstaller "\nJust to let you know ESCOM AG has released a new version of the installer program.\n\n\nVersion 43.3 can be found on Aminet in:\n\n/util/misc/Installer-43_3.lha\n\n\nYou might want to upgrade soon, if you can.")
  103. ;can you add provision for Java/Applets and Java/Classes dirs?
  104. (set #nossl "\nNote that the Voyager SSL module must not be used in the USA due to patent law restrictions. Are you living in the USA?\n")
  105. (set #okssl "\n\n\nUS citizens can legaly use the MiamiSSL library which ships with Miami 2.1.\n\nVoyagerNG will use this SSL library if it was installed with Miami 2.1.")
  106. (set #yesc "Yes - In USA")
  107. (set #noc "No - Other Country")
  108.  
  109. ;********************************************************************
  110. ; German Strings
  111. ;********************************************************************
  112. (if (= lan 1) (set OlliShareSomePizza TRUE_But_From_Long_Ago) )
  113.  
  114.  
  115. ;********************************************************************
  116. ; Check for LHA voyager.. if there unpack then install. Oh the floppy
  117. ;********************************************************************
  118. (if (= 1 (exists #Voyager_Archive) )
  119.  (
  120.    (welcome)
  121.    (set VoyagerUdir  (askdir (prompt #whereUnpack)
  122.                         (help   #whereUnpack)
  123.                          (default "Ram:")
  124.                     )  
  125.    )
  126.  
  127.    (working (cat #uncompressingbin ""))
  128.    (set ToDo  ("%s \"-qfw=%s\" x %s %s" #Compress VoyagerUdir #Voyager_Archive)) 
  129.    (set error (run ToDo))
  130.    (if (> error 0) (message #errorbin))
  131.   
  132.    (if (exists "Voyager.KEY")
  133.     (copyfiles (source "Voyager.key") (dest (tackon VoyagerUdir "V-NG-Prelease2")) (optional "nofail") ) 
  134.    )
  135.  
  136.    (set @default-dest VoyagerUdir)
  137.    ;(run (cat "run Installer \"" (tackon VoyagerUdir "V-NG-Prelease2/Install_Voyager") "\" APPNAME \"VoyagerNG-Installer\" MINUSER AVERAGE DEFUSER AVERAGE LOGFILE RAM:VoyagerNG-Install.LOG") ) 
  138.    (exit (cat #oktoinstall (tackon VoyagerUdir "V-NG-Prelease2/Install_Voyager")) (quiet))
  139.  )
  140.  
  141. )
  142.  
  143.  
  144. ;********************************************************************
  145. ; Check on New installer 
  146. ;********************************************************************
  147. (set InstallerVer 0)
  148. (set vernum1 @installer-version) (set ver1 (/ vernum1 65536)) 
  149. (set rev1 (- vernum1 (* ver1 65536) ) ) (set InstallerVer (cat ver1 "." rev1))
  150. (set current_installer "43.3")
  151. (if (< InstallerVer current_installer) (message #updateinstaller) )
  152.  
  153. ;********************************************************************
  154. ; Check on Setpatch 
  155. ;********************************************************************
  156. (set vernum1 (getversion "c:setpatch")) (set ver1 (/ vernum1 65536)) 
  157. (set rev1 (- vernum1 (* ver1 65536) ) ) (set setpatchver (cat ver1 "." rev1))
  158. (set current_setpatch "40.16")
  159. (if (< setpatchVer current_setpatch) (message #updatesetpatch) )
  160.  
  161. ;********************************************************************
  162. ; Hello
  163. ;********************************************************************
  164. (message #about)
  165. (welcome) 
  166.  
  167. ;********************************************************************
  168. ; Checks for MUI & OS versions
  169. ;********************************************************************
  170. (set ver 0)
  171. (if (<> (getassign "mui") "")
  172. (
  173.   (if (exists "mui:mui") 
  174.    (
  175.     (set vernum (getversion "mui:mui") )
  176.     (set ver (/ vernum 65536)) (set rev (- vernum (* ver 65536) ) )
  177.  
  178.     (if (= ver 7) (set muiver "2.0") )   (if (= ver 8) (set muiver "2.1") )
  179.     (if (= ver 9) (set muiver "2.2") )   (if (= ver 10) (set muiver "2.3") )
  180.     (if (= ver 11) (set muiver "3.0") )  (if (= ver 12) (set muiver "3.1") )
  181.     (if (= ver 13) (set muiver "3.2") )  (if (= ver 14) (set muiver "3.3") )
  182.     (if (= ver 15) (set muiver "3.4") )  (if (= ver 16) (set muiver "3.5") )
  183.     (if (= ver 17) (set muiver "3.6") )  (if (= ver 18) (set muiver "3.7") )
  184.     (if (= ver 19) (set muiver "3.8") )  (if (= ver 20) (set muiver "3.9") )
  185.    )
  186.   )
  187. )
  188. )
  189.  
  190. (if (< ver 17)   ( (message (cat #newermui muiver))   (set cpuPick 0) ))
  191. (if (< osver 39) ( (message (cat #need-os workbench)) (set cpuPick 0) ))
  192.  
  193. ;********************************************************************
  194. ; check for Register-Voyager-NG
  195. ;********************************************************************
  196. (if (OR (exists "Register-Voyager") (exists "Voyager.KEY"))
  197.  (set tempz 0) (abort #noregdir)
  198. )
  199. ;********************************************************************
  200. ; Ask where to put Voyager-NG & Make dir if needed
  201. ;********************************************************************
  202. (set Package (getassign "AmiTCP"))
  203. (if (= Package "") (set Package (getassign "Inet")) )
  204.  
  205. (set Voyagerdir  (askdir (prompt #whereVoyager)
  206.                 (help   #whereVoyager)
  207.                      (default Package)
  208.                )  
  209. )
  210.  
  211. (set where Voyagerdir)
  212.  
  213. ;********************************************************************
  214. ; Check for Key file
  215. ;********************************************************************
  216. ;(if (AND (= Vkey 1) (OR (= (exists "Voyager.Key") 0) (OR (= (exists "S:Voyager.Key") 0)  (= (exists (tackon where "Voyager.Key")) 0) ) ) )
  217. ; (
  218. ;  (message (cat #noreg1 (tackon where "Voyager/Voyager.Key") #noreg2))
  219. ;  (run (cat "run Register-Voyager") )
  220. ;  ;;** (exit (quiet))
  221. ; )
  222. ;) 
  223.  
  224. ;********************************************************************
  225. ; Check to see if Voyager-NG is already there, if so ask to backup
  226. ;********************************************************************
  227. (if (= 1 (exists (tackon where "V") ) ) 
  228.   (
  229.     (set vernum1 (getversion (tackon where "V") ))
  230.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  231.     (set Voyager_old (cat ver1 "." rev1))
  232.  
  233.     (message (cat #filethere1 ver1 "." rev1 #filethere2 where #filethere3 
  234.                   (cat "V" Voyager_old) #filethere4 (tackon Voyagerdir "V") )
  235.     )
  236.  
  237.     (copyfiles (source (tackon where "V"))
  238.                (dest where) 
  239.                (infos)
  240.                (newname (cat "V." Voyager_old))
  241.     )
  242.     
  243.     (delete (tackon Voyagerdir "V") (prompt #oktodelete1) (help #oktodelete1) (confirm) (infos)) 
  244.  
  245.     (if (< (exists (tackon Voyagerdir "V")) 2) (makedir (tackon Voyagerdir "V") (infos)) )    
  246.  
  247.     (copyfiles (source (tackon where (cat "V." Voyager_old) ))
  248.                        (dest (tackon Voyagerdir "V")) 
  249.                        (infos)
  250.                
  251.     )
  252.  
  253.     (delete (tackon where (cat "V" Voyager_old)) (prompt #oktodelete2) (help #oktodelete2) (confirm) (infos) ) 
  254.  
  255.     ;(set firsttime 1)
  256.  
  257.   )
  258. )
  259.  
  260. (if (< (exists (tackon Voyagerdir "Voyager")) 2) (makedir (tackon Voyagerdir "Voyager") (infos)) )
  261.  
  262. (if (exists "/Voyager-295.info")
  263.  (copyfiles (source "/Voyager-295.info") (dest (tackon "/" where)) (newname "Voyager.info") (optional "nofail") ) 
  264. )
  265.  
  266.  
  267. (set where (tackon Voyagerdir "Voyager"))
  268. (set @default-dest where)
  269.  
  270. ;********************************************************************
  271. ; Check for old & backup
  272. ;********************************************************************
  273. (if (exists (tackon where "V")) 
  274.   (
  275.       (set vernum1 (getversion (tackon where "V") ))
  276.       (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  277.       (set Voyager_old (cat ver1 "." rev1))
  278.  
  279.       (set keeper  (askchoice (choices  (cat #backuptoXXX Voyager_old "'")  #copyover)
  280.                      (prompt #Voyagerfound)
  281.                  (help   #Voyagerfound)
  282.                      (default 0)
  283.                )
  284.       )    
  285.  
  286.       (if (= keeper 0)
  287.          (copyfiles (source (tackon where "V"))
  288.                      (dest where) 
  289.                      (infos)
  290.                      (newname (cat "V" Voyager_old))
  291.          )
  292.       )          
  293.  
  294.       (set firsttime 1)
  295.   )
  296. )
  297.  
  298. ;********************************************************************
  299. ; Copy over correct Voyager and Icon if wanted
  300. ;********************************************************************
  301. (set gcpu 0)
  302. (if (AND (> #cpu 1) (exists ("V030")) ) (set gcpu 1) ) 
  303.  
  304.  
  305.  
  306. (set cpuPick (askchoice (choices "68000" "68030+FPU")
  307.              (prompt #askcpu)
  308.                      (help   #askcpu)
  309.                    (default gcpu)
  310.       )
  311. )
  312.  
  313. (if (AND (= cpuPick 1) (exists ("V030")) )
  314.  (copyfiles (source "V030") (dest where) (newname "V") (optional "nofail") )
  315.  (copyfiles (source "V") (dest where) (optional "nofail") )
  316. )
  317.  
  318. (if (AND (> #cpu 1) (= (exists ("V030")) 0) )
  319.  (message #no030found)
  320. )
  321.  
  322. (if (= firsttime 0)  (copyfiles (source "V.info") (dest where) (optional "nofail") ) )
  323.  
  324. (if (OR (= keeper 0) (= (exists (tackon where "V.info")) 0))
  325.   (
  326.    (set newicon (askchoice (choices #yesnewicon #nonewicon)
  327.                            (prompt #newicon)
  328.                        (help   #newicon)
  329.                            (default 0)
  330.             )
  331.    )
  332.   
  333.    (if (= newicon 0) 
  334.      (copyfiles (source "V.info") (dest where)  (optional "nofail") )
  335.    )
  336.   )
  337. )
  338.  
  339.  
  340. ;********************************************************************
  341. ; Copy over Other stuff
  342. ;********************************************************************
  343. (if (exists ("RegisterVoyager"))
  344.  (copyfiles (source "RegisterVoyager") (dest where)  (infos) (optional "nofail") )
  345. )
  346.  
  347. ;*** Copy Key 
  348. (if (> (exists "Voyager.KEY") 0)
  349.  (copyfiles (source "Voyager.KEY") (dest where) (infos) (optional "nofail") ) 
  350. )
  351.  
  352. (if (> (exists "TransferAnim") 0)
  353.  (copyfiles (source "TransferAnim") (dest where) (infos) (optional "nofail") ) 
  354. )
  355.  
  356. (makedir (tackon where "Cache"))
  357. (if (> (exists "CacheBrowser") 0)
  358.  (copylib (source "CacheBrowser") (dest where) (infos) (optional "nofail") ) 
  359. )
  360.  
  361. (if (> (exists "MimePrefs") 0)
  362.  (copylib (source "MimePrefs") (dest where) (infos) (optional "nofail") ) 
  363. )
  364.  
  365. ;******************************************************************************** 
  366. ; Copy over Plugins stuff
  367. ;********************************************************************************
  368. (if (< (exists (tackon where "Plugins")) 2) (makedir (tackon where "Plugins") (infos)) )    
  369. (if (exists "Plugins.info")
  370.  (copyfiles (source "Plugins.info") (dest where) (optional "nofail") ) 
  371. )
  372.  
  373. (if (> (exists "Plugins") 0)
  374.  (
  375.   (foreach "Plugins" "#?"
  376.      (copylib (source (tackon "Plugins" @each-name)) (dest (tackon where "Plugins")) (optional "nofail") ) 
  377.   )
  378.  
  379.   (set USA (askchoice (choices #yesc  #noc)
  380.                   (prompt #nossl)
  381.                   (help #nossl)
  382.                       (default 1)
  383.        )
  384.   )
  385.  
  386.   (if (= USA 0) 
  387.    (
  388.     (delete (tackon where "Plugins/voyager_ssleay.vlib")) 
  389.     (message #okssl)
  390.    )
  391.   )
  392.  
  393.  )
  394. )
  395. ;******************************************************************************** 
  396. ; Copy over rexx stuff
  397. ;********************************************************************************
  398. (if (> (exists "rexx") 0) 
  399. (
  400.  (if (< (exists (tackon where "rexx")) 2) (makedir (tackon where "rexx") (infos)) )    
  401.  (if (exists "Rexx.info")
  402.   (copyfiles (source "Rexx.info") (dest where) (optional "nofail") ) 
  403.  )
  404.  
  405.  (if (> (exists "rexx") 0)
  406.    (foreach "rexx" "#?"
  407.       (copylib (source (tackon "rexx" @each-name)) (dest (tackon where "rexx")) (optional "nofail") ) 
  408.    )
  409.  )
  410. )
  411. )
  412.  
  413.  
  414. ;******************************************************************************** 
  415. ; Copy over Certificates stuff
  416. ;********************************************************************************
  417. (if (> (exists "Certificates") 0) 
  418. (
  419.  
  420.  (if (< (exists (tackon where "Certificates")) 2) (makedir (tackon where "Certificates") (infos)) )    
  421.  (if (exists "Certificates.info")
  422.   (copyfiles (source "Certificates.info") (dest where) (optional "nofail") ) 
  423.  )
  424.  
  425.  (foreach "Certificates" "#?"
  426.     (copyfiles (source (tackon "Certificates" @each-name)) (dest (tackon where "Certificates")) (optional "nofail") ) 
  427.  )
  428.  
  429. )
  430. )
  431.  
  432.  
  433.  
  434. ;******************************************************************************** 
  435. ; Copy over Submissions stuff
  436. ;********************************************************************************
  437. (if (< (exists (tackon where "Submissions")) 2) (makedir (tackon where "Submissions") (infos)) )    
  438. (if (exists "Submissions.info")
  439.  (copyfiles (source "Submissions.info") (dest where) (optional "nofail") ) 
  440. )
  441.  
  442. (if (> (exists "Submissions") 0)
  443.   (foreach "Submissions" "#?"
  444.      (copylib (source (tackon "Submissions" @each-name)) (dest (tackon where "Submissions")) (optional "nofail") ) 
  445.   )
  446. )
  447.  
  448. ;********************************************************************
  449. ; Copy over DOCS (home.html and Vpics dir) & Other Docs
  450. ;********************************************************************
  451. (set docs (askoptions (choices " Docs In HTML format" " V.readme") ;" V.history"
  452.               (prompt #whatdocs) 
  453.                       (help #whatdocs)
  454.                   (default 3)
  455.       )
  456. )
  457.  
  458. (if (<> docs 0)
  459.  (
  460.    ;(set docsdir (askdir (prompt (cat #wheredocs " (V.readme)" )) ; & V.history
  461.    ;                (help   (cat #wheredocs " (V.readme)" )) ; & V.history
  462.    ;                   (default where)
  463.    ;             )  
  464.    ;)
  465.  
  466.    (set docsdir where)  
  467.  
  468.    (if (IN docs 0)
  469.     (
  470.       (if (< (exists (tackon where "Voyager_home")) 2) (makedir (tackon where "Voyager_home") (infos)) )    
  471.       (if (< (exists (tackon where "Voyager_home/images")) 2) (makedir (tackon where "Voyager_home/images") (infos)) )    
  472.       (if (exists "Voyager_home.info")
  473.         (copyfiles (source "Voyager_home.info") (dest where) (optional "nofail") ) 
  474.       )
  475.  
  476.       (if (exists "Voyager_home")
  477.         (foreach "Voyager_home" "#?.html"
  478.            (copyfiles (source (tackon "Voyager_home" @each-name)) (dest (tackon where "Voyager_home")) (optional "nofail") ) 
  479.         )
  480.       )
  481.  
  482.       (if (exists "Voyager_home/images")
  483.         (foreach "Voyager_home/images" "#?.gif"
  484.           (copyfiles (source (tackon "Voyager_home/images" @each-name)) (dest (tackon where "Voyager_home/images")) (optional "nofail") ) 
  485.         )
  486.       )
  487.     )
  488.    )
  489.  
  490.    (if (IN docs 1) (copyfiles (source "V.readme") (dest docsdir) (infos) (optional "nofail") ) )
  491.    (if (IN docs 2) (copyfiles (source "V.history") (dest docsdir) (infos) (optional "nofail") ) )
  492.  )
  493. )
  494.  
  495. ;********************************************************************
  496. ; Copy over TOOLS if wanted
  497. ;********************************************************************
  498. (if (> (exists "Tools") 0)
  499.  (
  500.   (set tools (askoptions (choices " ClearCacheDir" " Uninstall")
  501.                    (prompt (cat #whattools (tackon where "Tools\n"))) 
  502.                          (help   (cat #whattools (tackon where "Tools\n")))
  503.                      (default 1)
  504.              )
  505.   )
  506.  
  507.   (if (<> tools 0)
  508.    (
  509.      (if (< (exists (tackon where "Tools")) 2) (makedir (tackon where "Tools") (infos)) )    
  510.      (set toolsdir (tackon where "Tools"))   
  511.  
  512.      (if (IN tools 0) (copyfiles (source "Tools/ClearCacheDir") (dest toolsdir) (infos) (optional "nofail") ) )
  513.      (if (IN tools 1) (copyfiles (source "Tools/Uninstall") (dest toolsdir) (infos) (optional "nofail") ) )
  514.    
  515.    )
  516.   )
  517.  
  518.  )
  519. )
  520.  
  521. ;********************************************************************
  522. ; Copy over #?.mpc|#?.mcc (Need to be in mui:libs/mui)
  523. ;********************************************************************
  524. (if (<> (getassign "mui") "")
  525. (
  526.   (if (> (exists "mui:libs/mui") 0) 
  527.    (
  528.     (working #updatingmuic)
  529.     (foreach "mui" "#?.mcp"
  530.         (copylib (source (tackon "mui" @each-name)) (dest "mui:libs/mui") (optional "nofail") ) 
  531.     )
  532.     (foreach "mui" "#?.mcc"
  533.         (copylib (source (tackon "mui" @each-name)) (dest "mui:libs/mui") (optional "nofail") ) 
  534.     )
  535.    )
  536.  
  537.    (message (cat #newermui muiver #nompc)) 
  538.   )
  539. )
  540. )
  541.  
  542. ;********************************************************************
  543. ; Reg stuff 
  544. ;********************************************************************
  545. (if (exists"Register-Voyager") 
  546.  (
  547.   (if (< (exists (tackon where "Register-Voyager")) 2) (makedir (tackon where "Register-Voyager") (infos)) )    
  548.   (if (exists "Register-Voyager.info")
  549.     (copyfiles (source "Register-Voyager.info") (dest where) (optional "nofail") ) 
  550.   )
  551.   (set whereR (tackon where "Register-Voyager"))
  552.  
  553.  
  554.   (set whatreg  (askchoice (choices "English"  "Deutsch" "Francais" "Svenska" "Polski" "Italiano" )
  555.                            (prompt "What Registration Files (Language) would you like to install?")
  556.                        (help   "What Registration Files (Language) would you like to install?")
  557.                         (default 0)
  558.                 )  
  559.   )
  560.  
  561.   (if (= whatreg 0) ((set basereg "English")  (set baseregTT "English") ) )
  562.   (if (= whatreg 1) ((set basereg "Deutsch")  (set baseregTT "Deutsch") ) )
  563.   (if (= whatreg 2) ((set basereg "Francais") (set baseregTT "French")  ) )
  564.   (if (= whatreg 3) ((set basereg "Svenska")  (set baseregTT "Svenska")  ) )
  565.   (if (= whatreg 4) ((set basereg "Polski")   (set baseregTT "Polski")  ) )
  566.   (if (= whatreg 5) ((set basereg "Italiano") (set baseregTT "Italiano")  ) )
  567.  
  568.   (if (exists "Register-Voyager/RegistrationUtility") 
  569.     (copyfiles (source "Register-Voyager/RegistrationUtility")
  570.                (dest whereR) 
  571.     )
  572.   )
  573.  
  574.   (if (exists (tackon "Register-Voyager" (cat "Regtool-" basereg ".info")) )
  575.     (copyfiles (source (tackon "Register-Voyager" (cat "Regtool-" basereg ".info")) )
  576.                (dest whereR) 
  577.                (newname "RegistrationUtility.info")
  578.     )
  579.   )
  580.  
  581.   (if (exists (tackon "Register-Voyager" (cat "Reg_" basereg ".guide")) ) 
  582.     (copyfiles (source (tackon "Register-Voyager" (cat "Reg_" basereg ".guide")))
  583.                (dest whereR) 
  584.                (infos)
  585.     )
  586.   )
  587.  
  588.   (if (exists (tackon "Register-Voyager" (cat "Reg_" basereg ".doc")) )
  589.     (copyfiles (source (tackon "Register-Voyager" (cat "Reg_" basereg ".doc")))
  590.                (dest whereR) 
  591.                (infos)
  592.     )
  593.   )
  594.  
  595.  
  596.  )
  597. )
  598.  
  599.  
  600. ;********************************************************************
  601. ; End Bye 
  602. ;********************************************************************
  603. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  604. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  605. (run (cat "run " #mpath "/multiview V.readme") )
  606.  
  607. (exit #byebye)
  608.